#!/usr/bin/env python

from glp.library import Librarian
from glp.library import Reader
import glp.util

printer = glp.util.StdoutPrinter()
glp.util.InitializeFreeRangeProgram()
Librarian.ClearIndex()
ids = [metadata.id for metadata in Librarian.FilteredMetadata('^rec-\d+-\d+$')]
Librarian.UpdateIndex(ids, printer)
